/**
 * com.cnhis.his.customer.mapper.Baf1.java
 */
package com.mbmed.doctor.homepage.mapper;

import javax.xml.bind.annotation.XmlRootElement;

import com.mbmed.doctor.commons.utils.BaseVO;

/**
 * @file  Baf1.java
 * @author 刘武
 * @version 0.1
 * @todo	Baf1数据值
 * Copyright(C), 2013-2014
 *		 Shenzhen Coordinates Software Development Co., Ltd.
 * History
 *   	1. Date: 2014-11-25 04:59:01
 *      	Author: 刘武
 *      	Modification: this file was created
 *   	2. ...
 */
@XmlRootElement
public class Baf1 extends BaseVO implements java.io.Serializable{

	private java.lang.String baf01;
	private java.lang.String baf02;
	private java.lang.String baf03;
	private java.lang.String baf04;
	private java.lang.Byte baf05;
	private java.lang.Integer rownr;
	public Baf1(){
	}

	public Baf1(
		java.lang.String baf01
	){
		this.baf01 = baf01;
	}



	public void setBaf01(java.lang.String value) {
		this.baf01 = value;
	}	
	public java.lang.String getBaf01() {
		return this.baf01;
	}

	public void setBaf02(java.lang.String value) {
		this.baf02 = value;
	}	
	public java.lang.String getBaf02() {
		return this.baf02;
	}

	public void setBaf03(java.lang.String value) {
		this.baf03 = value;
	}	
	public java.lang.String getBaf03() {
		return this.baf03;
	}

	public void setBaf04(java.lang.String value) {
		this.baf04 = value;
	}	
	public java.lang.String getBaf04() {
		return this.baf04;
	}

	public void setBaf05(java.lang.Byte value) {
		this.baf05 = value;
	}	
	public java.lang.Byte getBaf05() {
		return this.baf05;
	}

	public void setRownr(java.lang.Integer value) {
		this.rownr = value;
	}	
	public java.lang.Integer getRownr() {
		return this.rownr;
	}


    public String toString() {
		  StringBuffer buffer = new StringBuffer();
		  buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");	
			   buffer.append("Baf01").append("='").append(getBaf01()).append("' ");	
			   buffer.append("Baf02").append("='").append(getBaf02()).append("' ");	
			   buffer.append("Baf03").append("='").append(getBaf03()).append("' ");	
			   buffer.append("Baf04").append("='").append(getBaf04()).append("' ");	
			   buffer.append("Baf05").append("='").append(getBaf05()).append("' ");	
			   buffer.append("Rownr").append("='").append(getRownr()).append("' ");	
		  buffer.append("]");
		  return buffer.toString();
	}		

	public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof Baf1) ) return false;
		 Baf1  castOther = ( Baf1) other;  
		 return 
					( (this.getBaf01()==castOther.getBaf01()) ||( this.getBaf01()!=null && castOther.getBaf01()!=null && this.getBaf01().equals(castOther.getBaf01()) ) )
					&&( (this.getBaf02()==castOther.getBaf02()) ||( this.getBaf02()!=null && castOther.getBaf02()!=null && this.getBaf02().equals(castOther.getBaf02()) ) )
					&&( (this.getBaf03()==castOther.getBaf03()) ||( this.getBaf03()!=null && castOther.getBaf03()!=null && this.getBaf03().equals(castOther.getBaf03()) ) )
					&&( (this.getBaf04()==castOther.getBaf04()) ||( this.getBaf04()!=null && castOther.getBaf04()!=null && this.getBaf04().equals(castOther.getBaf04()) ) )
					&&( (this.getBaf05()==castOther.getBaf05()) ||( this.getBaf05()!=null && castOther.getBaf05()!=null && this.getBaf05().equals(castOther.getBaf05()) ) )
					&&( (this.getRownr()==castOther.getRownr()) ||( this.getRownr()!=null && castOther.getRownr()!=null && this.getRownr().equals(castOther.getRownr()) ) )
			;
    }

	public int hashCode() {
         int result = 17;
				  result = 37 * result + (getBaf01() == null ? 0 : this.getBaf01().hashCode() );
				  result = 37 * result + (getBaf02() == null ? 0 : this.getBaf02().hashCode() );
				  result = 37 * result + (getBaf03() == null ? 0 : this.getBaf03().hashCode() );
				  result = 37 * result + (getBaf04() == null ? 0 : this.getBaf04().hashCode() );
				  result = 37 * result + (getBaf05() == null ? 0 : this.getBaf05().hashCode() );
				  result = 37 * result + (getRownr() == null ? 0 : this.getRownr().hashCode() );
         return result;
	} 
	
}
